home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / SCANNOT.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  48 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   SCANNOT .DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20.  
  21. $INCLUDE "DAS-NB01.INC"
  22. COLOR 7, 0
  23. CLS
  24.  
  25. ? "┌────────────────────────────────────────────────────────────
  26. ? "│ fSCANNOT%  ( Start%, ANY )
  27. ? "│ fSCANrNOT% ( Start%, ANY, Chars?? )
  28. ? "├────────────────────────────────────────────────────────────────
  29. ? "│ Still better than the yellow pages but now we're looking for a
  30. ? "│ NON-OCCURRENCE of our character(s).
  31. ? "│ If you've not had a look, yet, at SCAN.DMO then do it now and all
  32. ? "│ will be clear!
  33. ? "└─────────────────────────────────────────────────────────────────────────
  34. ?
  35. V$ = "   This is a test   "
  36. PRINT CHR$(34); V$ CHR$(34)
  37.  
  38.  
  39. P1% = fSCANnot%( 0, V$, &h0020 )   ' looking for the 1st NON <SPACE>
  40.       LOCATE 12, P1%+1 : PRINT CHR$(24)
  41.       LOCATE 13, P1%+1 : PRINT "│"
  42.       LOCATE 14, P1%+1 : PRINT "└──────────────────────────── NON<space>"
  43.  
  44. P2% = fSCANrNOT%( 0, V$, &h2020 )   ' looking for the last NON "  "
  45.       LOCATE 12, P2%+1 : PRINT CHR$(24)
  46.       LOCATE 13, P2%+1 : PRINT "└─────────────── NON<space><space>"
  47.  
  48.